package io.geekidea.boot.warehousentry.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.geekidea.boot.warehousentry.dto.StatisticsDto;
import io.geekidea.boot.warehousentry.dto.WarehousentryExcel;
import io.geekidea.boot.warehousentry.query.entity.Warehousentry;
import io.geekidea.boot.warehousentry.query.WarehousentryQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Warehouseentrymapper extends BaseMapper<Warehousentry> {

    Page<Warehousentry> getWarehousentryPageList(Page<Warehousentry> page, @Param("param") WarehousentryQuery warehousentryQuery);

    List<WarehousentryExcel> getDownloadList(@Param("param") WarehousentryQuery warehousentryQuery);

    int getSingularCount(@Param("param") WarehousentryQuery warehousentryQuery);

    List<StatisticsDto> getWeekCount(@Param("param") WarehousentryQuery warehousentryQuery);
}
